import { createRouter, createWebHistory } from 'vue-router'
import Products from '../pages/Products.vue'
import Orders from '../pages/Orders.vue'
import Shipments from '../pages/Shipments.vue'
import DeliveryNote from '../pages/DeliveryNote.vue'
import Delivery from '../pages/Delivery.vue'

const routes = [
  { path: '/', component: Products },
  { path: '/orders', component: Orders },
  { path: '/shipments', component: Shipments },
  { path: '/delivery/:orderId', component: DeliveryNote },
  { path: '/delivery', component: Delivery }
]

const router = createRouter({
  history: createWebHistory(),
  routes
})

export default router
